import java.util.Random;

public class IfDemo10 {
    public static void main(String[] args) {
        Random random = new Random();// 创建一个随即数对象
        int i = random.nextInt(3) + 1;// 0-2 有头无尾
        System.out.println(i);
    }
}
